package request

import (
	"hft/Database/admin"
	utils "hft/Http/Utils"
)

type AccountInfo struct {
	Username string         `json:"username,omitempty"`
	Avatar   string         `json:"avatar,omitempty"`
	Phone    string         `json:"phone,omitempty"`
	Routes   []*admin.Route `json:"children,omitempty"`
	Btns     []*admin.Btn   `json:"btns,omitempty"`
	Apis     []*admin.Api   `json:"apis,omitempty"`
}

type AccountRegion struct {
	RegionId uint   `json:"id,omitempty" form:"id,omitempty"`
	Phone    string `json:"phone,omitempty" form:"phone,omitempty"`
	IDCard   string `json:"idCard,omitempty" form:"idCard,omitempty"`
	RoleId   int    `json:"roleId" form:"roleId"`
	Status   bool   `json:"status"`
}

type AccountSearchInfo struct {
	Username string `json:"username,omitempty" form:"username,omitempty"`
	RealName string `json:"realName,omitempty" form:"realName,omitempty"`
}

type AccountPage struct {
	AccountRegion
	AccountSearchInfo
	Base
	utils.Page
}

type SetRegion struct {
	Username string `json:"username,omitempty"`
	IDS      []uint `json:"ids,omitempty"`
}

type SetStatus struct {
	Status bool `json:"status"`
	ID     int  `json:"id"`
}

type Account struct {
	admin.Account
	Code string `json:"code"`
}
